<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Aether.Physics2D: Sweep Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NugetLogo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Aether.Physics2D
   &#160;<span id="projectnumber">2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_sweep.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_sweep-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Sweep Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This describes the motion of a body/shape for TOI computation. Shapes are defined with respect to the body origin, which may no coincide with the center of mass. However, to support dynamics we must interpolate the center of mass position.  
 <a href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_sweep.html#details">More...</a></p>
<div class="dynheader">
Collaboration diagram for Sweep:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_sweep__coll__graph.svg" width="188" height="248"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab3e6b30aaab0e2569de1dadcf09c8864"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_sweep.html#ab3e6b30aaab0e2569de1dadcf09c8864">GetTransform</a> (out <a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_transform.html">Transform</a> xfb, float beta)</td></tr>
<tr class="memdesc:ab3e6b30aaab0e2569de1dadcf09c8864"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the interpolated transform at a specific time.  <a href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_sweep.html#ab3e6b30aaab0e2569de1dadcf09c8864">More...</a><br /></td></tr>
<tr class="separator:ab3e6b30aaab0e2569de1dadcf09c8864"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad046352fb655f033823a09d724170b1a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_sweep.html#ad046352fb655f033823a09d724170b1a">Advance</a> (float alpha)</td></tr>
<tr class="memdesc:ad046352fb655f033823a09d724170b1a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Advance the sweep forward, yielding a new initial state.  <a href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_sweep.html#ad046352fb655f033823a09d724170b1a">More...</a><br /></td></tr>
<tr class="separator:ad046352fb655f033823a09d724170b1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af279e0f0ff720ee54d6733674dfda50a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_sweep.html#af279e0f0ff720ee54d6733674dfda50a">Normalize</a> ()</td></tr>
<tr class="memdesc:af279e0f0ff720ee54d6733674dfda50a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Normalize the angles.  <a href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_sweep.html#af279e0f0ff720ee54d6733674dfda50a">More...</a><br /></td></tr>
<tr class="separator:af279e0f0ff720ee54d6733674dfda50a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ad0fae016647bf6b083c331ca152b50e1"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_sweep.html#ad0fae016647bf6b083c331ca152b50e1">A</a></td></tr>
<tr class="memdesc:ad0fae016647bf6b083c331ca152b50e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">World angles  <a href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_sweep.html#ad0fae016647bf6b083c331ca152b50e1">More...</a><br /></td></tr>
<tr class="separator:ad0fae016647bf6b083c331ca152b50e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3c9ffd64bc35edd9fcc2bb7827d5872"><td class="memItemLeft" align="right" valign="top"><a id="ab3c9ffd64bc35edd9fcc2bb7827d5872"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>A0</b></td></tr>
<tr class="separator:ab3c9ffd64bc35edd9fcc2bb7827d5872"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98127db22b8b1f7187cbd3f6590ac863"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_sweep.html#a98127db22b8b1f7187cbd3f6590ac863">Alpha0</a></td></tr>
<tr class="memdesc:a98127db22b8b1f7187cbd3f6590ac863"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fraction of the current time step in the range [0,1] c0 and a0 are the positions at alpha0.  <a href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_sweep.html#a98127db22b8b1f7187cbd3f6590ac863">More...</a><br /></td></tr>
<tr class="separator:a98127db22b8b1f7187cbd3f6590ac863"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26c88bc296da1ba57014de5f9c712a73"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_sweep.html#a26c88bc296da1ba57014de5f9c712a73">C</a></td></tr>
<tr class="memdesc:a26c88bc296da1ba57014de5f9c712a73"><td class="mdescLeft">&#160;</td><td class="mdescRight">Center world positions  <a href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_sweep.html#a26c88bc296da1ba57014de5f9c712a73">More...</a><br /></td></tr>
<tr class="separator:a26c88bc296da1ba57014de5f9c712a73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9eb481a53a61ea9e60e69c846b92307"><td class="memItemLeft" align="right" valign="top"><a id="ae9eb481a53a61ea9e60e69c846b92307"></a>
<a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><b>C0</b></td></tr>
<tr class="separator:ae9eb481a53a61ea9e60e69c846b92307"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa0543fc492adcbf2c89f8ebf73d24b4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_sweep.html#aaa0543fc492adcbf2c89f8ebf73d24b4">LocalCenter</a></td></tr>
<tr class="memdesc:aaa0543fc492adcbf2c89f8ebf73d24b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Local center of mass position  <a href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_sweep.html#aaa0543fc492adcbf2c89f8ebf73d24b4">More...</a><br /></td></tr>
<tr class="separator:aaa0543fc492adcbf2c89f8ebf73d24b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This describes the motion of a body/shape for TOI computation. Shapes are defined with respect to the body origin, which may no coincide with the center of mass. However, to support dynamics we must interpolate the center of mass position. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ad046352fb655f033823a09d724170b1a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad046352fb655f033823a09d724170b1a">&#9670;&nbsp;</a></span>Advance()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Advance </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>alpha</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Advance the sweep forward, yielding a new initial state. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">alpha</td><td>new initial time..</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ab3e6b30aaab0e2569de1dadcf09c8864"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3e6b30aaab0e2569de1dadcf09c8864">&#9670;&nbsp;</a></span>GetTransform()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GetTransform </td>
          <td>(</td>
          <td class="paramtype">out <a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_transform.html">Transform</a>&#160;</td>
          <td class="paramname"><em>xfb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>beta</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the interpolated transform at a specific time. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">xfb</td><td>The transform.</td></tr>
    <tr><td class="paramname">beta</td><td>beta is a factor in [0,1], where 0 indicates alpha0.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af279e0f0ff720ee54d6733674dfda50a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af279e0f0ff720ee54d6733674dfda50a">&#9670;&nbsp;</a></span>Normalize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Normalize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Normalize the angles. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ad0fae016647bf6b083c331ca152b50e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0fae016647bf6b083c331ca152b50e1">&#9670;&nbsp;</a></span>A</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float A</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>World angles </p>

</div>
</div>
<a id="a98127db22b8b1f7187cbd3f6590ac863"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98127db22b8b1f7187cbd3f6590ac863">&#9670;&nbsp;</a></span>Alpha0</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float Alpha0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fraction of the current time step in the range [0,1] c0 and a0 are the positions at alpha0. </p>

</div>
</div>
<a id="a26c88bc296da1ba57014de5f9c712a73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26c88bc296da1ba57014de5f9c712a73">&#9670;&nbsp;</a></span>C</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a> C</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Center world positions </p>

</div>
</div>
<a id="aaa0543fc492adcbf2c89f8ebf73d24b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaa0543fc492adcbf2c89f8ebf73d24b4">&#9670;&nbsp;</a></span>LocalCenter</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a> LocalCenter</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Local center of mass position </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>Physics2D/Common/Math.cs</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacenkast.html">nkast</a></li><li class="navelem"><a class="el" href="namespacenkast_1_1_aether.html">Aether</a></li><li class="navelem"><a class="el" href="namespacenkast_1_1_aether_1_1_physics2_d.html">Physics2D</a></li><li class="navelem"><a class="el" href="namespacenkast_1_1_aether_1_1_physics2_d_1_1_common.html">Common</a></li><li class="navelem"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_sweep.html">Sweep</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
